//
//  YMNetDataUtil.h
//  MyProject
//
//  Created by Pei on 16/6/19.
//  Copyright © 2016年 Xiaobo Pei. All rights reserved.
//
#import <Foundation/Foundation.h>

@interface YMNetDataUtil : NSObject

+(YMNetDataUtil*) getInstance;
+(NSDictionary*)formatePostDataWithSysHead:(id)sysHead withAppHead:(id)appHead withBody:(id)body;
+(id)getSysHead:(NSDictionary*)response;

+(id)getSysCode:(NSDictionary*)sysHead;

+(id)getSysMsg:(NSDictionary*)sysHead;
+(id)getSuccessState:(NSDictionary*)sysHead;

+(id)getSysSessionID:(NSDictionary*)sysHead;
+(id)getBody:(NSDictionary*)response;

+(id)getState:(NSDictionary*)response;

+(NSString*)formateSysHeadWithAction:(NSString*)action;

+(NSString*)formateSysHeadWithAction;
+(NSDictionary*)formateDicSysHeadWithAction;
//md5
+(NSString*)md5:(NSString*)str;
+(BOOL)isNoDataState:(NSDictionary*)sysHead;
+(BOOL)isLatestVersion:(NSDictionary*)sysHead;
@end
